<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>资讯信息详细</title>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/common/jquery-2.0.0.min.js"></script>
	<link rel='stylesheet prefetch' href='${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css'>
	<link rel='stylesheet prefetch' href='${pageContext.request.contextPath}/css/information/information_main.css'>
	<link rel='stylesheet prefetch' href='${pageContext.request.contextPath}/css/information/flickity-docs.css'>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/common/header_changeLi.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/information/flickity-docs.min.js"></script>
	<link rel='stylesheet prefetch' href='${pageContext.request.contextPath}/css/common/main_head.css'>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/information/xiangxi.css">
	<link href="${pageContext.request.contextPath}/css/common/page.css"rel="stylesheet">
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/information/infoDetailAjax.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/information/infoDetailPage.js"></script>
	<script type="text/javascript"
	src="${pageContext.request.contextPath }/ueditor/ueditor.parse.js"></script>
</head>



<body>
	<!-- 顶部部分 -->
	<header>
		<div class="rightTop">
			<ul>
				<li><a href="#">登录</a></li>
				<li class="separator">|</li>
				<li><a href="#">注册</a></li>
				<li class="separator">|</li>
				<li><a href="login.html">个人中心</a></li>
			</ul>
		</div>
		<div class="headermenu">
			<ul>
				<li><a href="#">首页</a></li>
				<li><a href="#">作品</a></li>
				<li><a href="#">设计师</a></li>
				<li><a href="#">品牌服装</a></li>
				<li><a href="#">服装企业</a></li>
				<li><a href="${pageContext.request.contextPath}/fabric/getFabricMain.do">面料</a></li>
				<li><a href="${pageContext.request.contextPath}/provider/providerInfo.do">供应商</a></li>
				<li class="current"><a href="${pageContext.request.contextPath}/information/information.do?pageindex=1&pagesize=7">资讯</a></li>
			</ul>
		</div>
		<div class="search">
			<input type="text" placeholder="我想找···" />
		</div>
	</header>
	
	<!-- 内容部分 -->
	<div class="container">
	<p class="c_title">位置：<a href="#">FCS</a> >> <a href="${pageContext.request.contextPath}/information/information.do?pageindex=1&pagesize=7">资讯</a> >> 资讯信息详细</p>
			<div id="pagebody">
				<div id="sidebar">
					<div class="grids">
					
						<div class="grid box">
							<div class="grid-header">
								<a class="gotosingle">${info.title}</a>
								<ul style="margin-left:3px;">
									<li><span>发布人<a href="#">${user.username }</a> <fmt:formatDate value="${info.release_time}" pattern="yyyy-MM-dd"/>
</span></li>
								</ul>
							</div>
							<div class="singlepage">
								<p>${info.content }
									<a href="#ping">评论</a></p>
								<div class="clearfix"> </div>

							</div>
						</div>
						<div class="clearfix"> </div>
					</div>

					<div class="content-form">
						<div id="ping">
							<h3>发表评论</h3>
							<div>
								<input class="user_id" type="hidden" name="user_id" value="${user_id}">
								<input type="hidden" name="object_type" value="4">
								<input type="hidden" name="urlText" value="${pageContext.request.contextPath}" class="urlText">
								<input type="hidden" name="photo_link" value="${user.photo_link }" class="photo_link">
								<input type="hidden" name="username" value="${user.username}" class="username">
								<input type="hidden" name="datetime" value="${datetime }" class="datetime">
								<textarea placeholder="请发表一下您的看法" class="CommentMain" style="width: 600px;height: 200px;"></textarea>					
								<input id="commentbtn" type="submit" value="发表" /> 
							</div>
							<div class="tech-news-grids">
							<c:forEach items="${json.list }" var="com">
							<div id="afterCommentDiv" class="afterCommentDiv">
								<img alt="30x30" class="img-circle img-opcaity" style="width:50px;height:50px" src="${user.photo_link }">
								<p>${user.username }</p>
								<p>${com.content}</p>
								<p style="color:#999">发布于：<fmt:formatDate value="${com.datetime}" pattern="yyyy-MM-dd"/></p>
							</div>
							</c:forEach>
							</div>
							 <!--分页-->
								<div class="paging">
								     <div style="display: none;">
								        <span class="info_id">${info.id}</span>		        
									    <span class="pages">${json.property.pageCount}</span>  <!--页数-->  
								        <span class="hasNext">${json.property.hasNext}</span>   <!--是否有下一页(boolean)-->  
								        <span class="selfUrl">/comment/get_comment.do</span>    <!--请求action-->
								        <span class="commonUrl">${pageContext.request.contextPath}</span>   <!--绝对路径-->
								        <span class="datatimeUrl">fmt:formatDate</span>
								        
								        <span class="timer">pattern="yyyy-MM-dd"</span>
								    </div>
								    <div class="showPaging">
			       						 <a class="prev" href="javascript:;">上一页</a> 
										 <select class="pageNum">
											<option value="0">请选择跳转的页数</option>
											<option value="1">第1页</option>
										 </select> 
										 <a class="next" href="javascript:;">下一页</a>
			    					</div>
								</div>
								<!--分页结束--> 
						</div>
					</div>
				</div>
			</div>
			<div id="mainbody">

				<div class="other-title-head">
					<h5>最新资讯</h5>

					<div class="clearfix"></div>
				</div>
				<div class="tech-news-you">
					<div class="left-tech-news">
					<c:forEach items="${infoBytimeList }" var="obj">
						<div class="tech-news-you span_66">
							<li><a href="singlepage.html">${obj.title} </a></li>
						</div>
					</c:forEach>
					</div>
					<div class="clearfix"></div>
				</div>

				<div id="mainbodya">

					<div class="other-title-head">
						<h5>热点新闻</h5>

						<div class="clearfix"></div>
					</div>
					<div class="tech-news-you">
						<div class="left-tech-news">
						<c:forEach items="${hotInfoList }" var="obj">
							<div class="tech-news-you span_66">
								<li><a href="singlepage.html">${obj.title}</a></li>
							</div>
						</c:forEach>
						</div>
						<div class="clearfix"></div>

					</div>

				</div>
			</div>

			<div style="clear: both;"></div>
	</div>
	<!-- 页脚部分 -->
	<footer>
	</footer>
</body>
</html>
